/**
 *上传类型
 */
export enum UploadTypes {
    Excel = 0,
    Word = 1,
    PowerPoint = 2,
    Pdf = 3,
    Image = 4,
    Txt = 5,
    All,
}
//mime 类型参考地址 https://developer.mozilla.org/zh-CN/docs/Web/HTTP/MIME_types/Common_types
/**
 * 上传文件类型对应后缀及mime对照
 */
export const UploadTypesValues = {
    "0": { ext: [".xls", ".xlsx"], mime: ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] },
    "1": { ext: [".doc", ".docx"], mime: ["application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"] },
    "2": { ext: [".ppt", ".pptx"], mime: ["application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentat"] },
    "3": { ext: [".pdf"], mime: ["application/pdf"] },
    "4": { ext: [".jpg", ".png", ".jpeg", ".svg"], mime: ["image/jpeg", "image/png", "image/svg+xml"] },
    "5": { ext: [".txt"], mime: ["text/plain"] },
    "6": { ext: [".*"], mime: [] },
};
